require 'json'

module Spoule
    class Icon
      attr_reader :size, :url
      def initialize(size, url)
        @size = size
        @url = url
      end

      def to_json(*opts)
        %Q[#{@size.to_json(opts)}: #{url.to_json(opts)}]
      end
    end
end # module Spoule
